﻿using System;
using System.Collections.Generic;

namespace Oscilloscope.ChannelBuffer
{
	// Token: 0x02000020 RID: 32
	public class ChannelBufferFactory
	{
		// Token: 0x0600011A RID: 282 RVA: 0x000093B6 File Offset: 0x000075B6
		private ChannelBufferFactory()
		{
		}

		// Token: 0x0600011B RID: 283 RVA: 0x000093BE File Offset: 0x000075BE
		public static IChannelBuffer FileChannelBuffer(string filePath,string strings=null
			)
		{
			return new FileChannelBuffer(filePath, strings);
		}

		// Token: 0x0600011C RID: 284 RVA: 0x000093C6 File Offset: 0x000075C6
		public static IChannelBuffer EmptyChannelBuffer()
		{
			return new EmptyChannelBuffer();
		}

		/// <summary>
		/// 创建Buffer
		/// </summary>
		/// <param name="sampleFrequency"></param>
		/// <param name="timeLength"></param>
		/// <param name="signalType"></param>
		/// <param name="signalRatio"></param>
		/// <returns></returns>
		public static IChannelBuffer MemoryChannelBuffer(int sampleFrequency, double timeLength, SignalType signalType, SignalRatio signalRatio)
		{
			return new MemoryChannelBuffer(sampleFrequency, timeLength, signalType, signalRatio);
		}
	}
}
